// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from 'C:/Users/14037/Desktop/后台管理/recipe-background/backmanage/node_modules/umi/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/404",
    "exact": true,
    "component": require('@/pages/404.jsx').default
  },
  {
    "path": "/",
    "exact": true,
    "component": require('@/pages/index.jsx').default
  },
  {
    "path": "/home",
    "routes": [
      {
        "path": "/home/banner/add",
        "exact": true,
        "component": require('@/pages/home/banner/add.jsx').default
      },
      {
        "path": "/home/banner/details/:id",
        "exact": true,
        "component": require('@/pages/home/banner/details/[id].jsx').default
      },
      {
        "path": "/home/banner",
        "exact": true,
        "component": require('@/pages/home/banner/index.jsx').default
      },
      {
        "path": "/home/combo",
        "exact": true,
        "component": require('@/pages/home/combo/index.jsx').default
      },
      {
        "path": "/home",
        "exact": true,
        "component": require('@/pages/home/index.jsx').default
      },
      {
        "path": "/home/management",
        "exact": true,
        "component": require('@/pages/home/management/index.jsx').default
      },
      {
        "path": "/home/menu/details/:id",
        "exact": true,
        "component": require('@/pages/home/menu/details/[id].jsx').default
      },
      {
        "path": "/home/menu",
        "exact": true,
        "component": require('@/pages/home/menu/index.jsx').default
      },
      {
        "path": "/home/vip",
        "exact": true,
        "component": require('@/pages/home/vip/index.jsx').default
      }
    ],
    "component": require('@/pages/home/_layout.jsx').default
  },
  {
    "component": require('@/pages/404.jsx').default
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
